﻿import idv.ben.picasawebservice4flash.data.*;
import idv.ben.picasawebservice4flash.service.*;

class idv.ben.picasawebservice4flash.data.AlbumEntryGPhoto{
	
	private var __id:String;
	private var __name:String;
	private var __location:String;
	private var __access:String;
	private var __timestamp:String;
	private var __numphotos:String;
	private var __numphotosremaining:String;
	private var __bytesUsed:String;
	private var __user:String;
	private var __nickname:String;
	private var __commentingEnabled:String;
	private var __commentCount:String;
	
	/**
	* 建構子
	*/
	function AlbumEntryGPhoto(){
	}
	
	/**
	* 設定資料
	* @param paramName 由 http://picasaweb.google.com/data/feed/api/user/<i>userID</i>?kind=<i>kinds</i> 取回的 xml 中，&lt;feed&gt; 節點下的 &lt;entry&gt; 節點下的 &lt;gphoto:{param name}&gt; 節點的 {param name}。
	* @param paramValue 值
	*/
	public function applyParam(paramName:String, paramValue:String):Void{
		//trace("paramName=" + paramName + ", paramValue=" + paramValue);
		switch(paramName.toLowerCase()){
			case "id".toLowerCase():
			case "name".toLowerCase():
			case "location".toLowerCase():
			case "access".toLowerCase():
			case "timestamp".toLowerCase():
			case "numphotos".toLowerCase():
			case "numphotosremaining".toLowerCase():
			case "bytesUsed".toLowerCase():
			case "user".toLowerCase():
			case "nickname".toLowerCase():
			case "commentingEnabled".toLowerCase():
			case "commentCount".toLowerCase():
				this["__" + paramName] = paramValue;
		}
	}
	
	public function get id():String{return __id;}
	public function get name():String{return __name;}
	public function get location():String{return __location;}
	public function get access():String{return __access;}
	public function get timestamp():String{return __timestamp;}
	public function get numphotos():String{return __numphotos;}
	public function get numphotosremaining():String{return __numphotosremaining;}
	public function get bytesUsed():String{return __bytesUsed;}
	public function get user():String{return __user;}
	public function get nickname():String{return __nickname;}
	public function get commentingEnabled():String{return __commentingEnabled;}
	public function get commentCount():String{return __commentCount;}
}